package com.mycompany.user.service;

import com.mycompany.mvc.utils.BaseResult;
import com.mycompany.user.entity.Permission;
import com.mycompany.user.entity.User;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;
import java.util.Map;

public interface UserService {

	public ModelAndView login(User user);

	public List<Permission> getAllPermission(Map<String,Object> map);

	/**
	 * 获取用户主界面信息
	 */
	public ModelAndView getMain(User user);

	public BaseResult loginApp(User user);

	public BaseResult register(User user);

}
